package cn.bdqn.sp.service.impl;

import cn.bdqn.sp.mapper.SysRoleMapper;
import cn.bdqn.sp.pojo.SysRole;
import cn.bdqn.sp.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getRoles() {
        return sysRoleMapper.selectRoles();
    }
}
